<?php
/*
 * 正则配置
 */
$GLOBALS['regexpSettings'] = array( 
    "NOEMPTY"  => "NOEMPTY",
	"NORMAL"   => "/[a-zA-Z0-9\x{4e00}-\x{9fa5}]{1,}/u",                               //中英文数字规则
    "COMMON"   => "/[a-zA-Z0-9]{1,}/u",                                                //英文数字规则
	"STRING"   => "/^[a-zA-Z]{1,}$/",    		                                       //英文字符串规则
	"NUMBER"   => "/^\d{0,}$/",						                                   //整数规则
	"MONEY"    => "/^[0-9]+(\.)?[0-9]{0,2}$/",   	   	                               //金额规则
	"URL"      => "/^(http|https):\/\/[a-zA-Z0-9]*/",                                  //网址规则
	"PHONE"    => "/^[1][358][0-9]{9}$/",				                               //手机规则
	"SWITCH"   => "/(0|1){1}/",						                                   //开关规则（0或1）
	"EMAIL"    => "/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i", //邮箱规则
	"DATETIME" => "/^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}$"                             //标准日期时间 2016-08-15 21:44:52
);
?>